﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class MasterPages_Site : System.Web.UI.MasterPage
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            SetControlAttribute();
        }
    }

    private void SetControlAttribute()
    {
        lnkMainMenu.Attributes["OnClick"] = "if(!confirm(\"" + Resources.ifrsResource.ConfirmMainMenu + "\")) return false;";
    }

    protected void lnkMainMenu_Click(object sender, EventArgs e)
    {
        Response.Redirect("~/Index/Index.aspx");
    }
}
